package my.concurrent;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

public class MyCopyOnWrite {


    public void t1() {
        CopyOnWriteArrayList<Integer> list = new CopyOnWriteArrayList<>();

        ArrayList<Integer> integers = new ArrayList<>();
        List<Integer> synchronizedList = Collections.synchronizedList(integers);


    }
}
